<?php
use yii\helpers\Url;
use yii\widgets\ActiveForm;
?>
<div class="row">
    <div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
        <?php
        $form = ActiveForm::begin([
            'id' => 'category-form',
            'options' => ['class' => 'sky-form'],
        ])
        ?>
            <div class="reg-header">
                <h2>Register a new account</h2>
                <p>Already Signed Up? Click <a class="color-green" href="<?php echo Url::toRoute("user/login")?>">Sign In</a> to login your account.</p>
            </div>

            <label>Username</label>
            <input type="text" class="form-control margin-bottom-20" name="username">



            <label>Email Address <span class="color-red">*</span></label>
            <input type="text" class="form-control margin-bottom-20" name="email">

            <div class="row">
                <div class="col-sm-6">
                    <label>Password <span class="color-red">*</span></label>
                    <input type="password" class="form-control margin-bottom-20" name="password">
                </div>
                <div class="col-sm-6">
                    <label>Confirm Password <span class="color-red">*</span></label>
                    <input type="password" class="form-control margin-bottom-20" name="password_repeat">
                </div>
            </div>

            <hr>

            <div class="row">
                <div class="col-lg-6 checkbox">
                    <label>
                        <input type="checkbox" name="agree">
                        I read <a class="color-green" href="page_terms.html">Terms and Conditions</a>
                    </label>
                </div>
                <div class="col-lg-6 text-right">
                    <button type="submit" class="btn-u">Register</button>
                </div>
            </div>
        <?php ActiveForm::end() ?>
    </div>
</div>